#!/usr/bin/env python
# -*-coding:utf-8-*-
# File    : liyuqi.py
# Date    : 2021-01-22
# Author  : Tom.Lee

# 题目分析
# 5x+3y+z/3=100
# x+y+z=100

count = 0
for x in range(18):
    for y in range(30):
        z = 100 - x - y
        if (5 * x) + (3 * y) + (z / 3) == 100:
            count += 1
            print("方案{}: 公鸡{}只，母鸡{}只，小鸡{}只".format(count, x, y, z))

print("共{}种方案".format(count))
